<?php
/**
 * Created by JetBrains PhpStorm.
 * User: adilet
 * Date: 14.08.13
 * Time: 11:10
 * To change this template use File | Settings | File Templates.
 */

class Tourism_CitiesController extends Core_Controller_Action_Standard {

  public function indexAction()
  {

  }

  public function viewAction()
  {

  }

  public function browseAction()
  {
    $citiesTable = Engine_Api::_()->getDbTable('cities', 'tourism');
    $select = $citiesTable->select();

    $this->view->paginator = $paginator = Zend_Paginator::factory($select);
    $paginator->setItemCountPerPage(10);
    $paginator->setCurrentPageNumber($this->_getParam('page'));

  }

}